use rs_client::{client::Client, request::RequestModel};

const TIME_INTERVAL: u64 = 1; // second

#[tokio::main]
async fn main() {
    println!("pz-remote client is starting ...");
    let request_model = RequestModel::new("http://localhost:8080");
    let _ = Client::new(2)
        .register(&request_model)
        .await
        .expect("register failed")
        .controlled_poll(TIME_INTERVAL, 2, &request_model)
        .await;
}
